<template>
	<view class="page">
		<view class="rule">
			<!-- <view class="item-box">
				<view class="item">
					<view class="item-num">1</view>
					<view class="content">
						美食图片仅供参考，菜品会因应季节和摆盘做出适当调整
					</view>
				</view>
				<view class="item">
					<view class="item-num">2</view>
					<view class="content">
						线上下单电子码是唯一使用凭证，请注意妥善保管
					</view>
				</view>
				<view class="item">
					<view class="item-num">3</view>
					<view class="content">
						下单后请在规定时间内凭借电子码到店核销使用，在有效期内前24小时可无条件退款,有效期内不使用则自动作废
					</view>
				</view>
				<view class="item">
					<view class="item-num">4</view>
					<view class="content">
						下更多订单详情咨询，可添加本地推者客服号:XXXX(微信号)
					</view>
				</view>
				<view class="item">
					<view class="item-num">5</view>
					<view class="content">
						次活动产品可转赠亲友，不可用作二次销售，违者必将追究其法律责任，且相关产品作废处理
					</view>
				</view>
				<view class="item">
					<view class="item-num">6</view>
					<view class="content">
						下单即视为认同本平台声明及规则
					</view>
				</view>
			</view> -->
			<view class="rule-title">{{listData.article_title}}</view>
			<view class="rule-content" v-html="listData.article_content"></view>
			<!-- 没有记录 -->
			<view class="null" v-if="listData.length == 0">
				<text class="iconfont icon-wushuju"></text>
				<text class="cont">亲，暂无相关记录哦</text>
			</view>
			<!-- <uni-load-more v-else :loadingType="loadingType"></uni-load-more> -->
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				rule: 0,
				listData:[],
			};
		},
		onLoad() {
			this.getInfo();
		},
		methods:{
			/* 获取协议 */
			getInfo() {
				let self = this;
				uni.showLoading({
					title: '加载中'
				});
				self._post('plus.article.Article/detail', {
						article_id: 10022
					},
					function(res) {
						self.listData = res.data.detail;
					//	self.loadding = true;
						uni.hideLoading();
					});
			},
			
		}
	}
</script>

<style lang="scss">
	.page {
		width: 100%;
		height: 1240rpx;
		background-image: url(../../../../static/rule-bg1.png);
		overflow: hidden;
	}
	.rule-title{
		font-size: 32rpx;
		font-weight: 900;
		text-align: center;
		margin-top: 30rpx;
		
	}
	.rule-content{
		padding: 20rpx;
		overflow: auto;
		font-size: 28rpx;
		text-indent: 56rpx;
	}
	.rule {
		width: 96%;
		margin: 0 auto;
		height: 700rpx;
		background-color: #FFFFFF;
		margin-top: 300rpx;
		border-radius: 20rpx;
		overflow: auto;
		position: relative;
	}

	.item-box {
		width: 100%;
		margin: 40rpx 0 70rpx;
	}

	.item {
		width: 100%;
		padding: 20rpx 60rpx 0rpx;
		display: flex;
		flex-direction: row;
		margin-top: 20rpx;
	}

	.content {
		width: 70%;
		margin-left: 20rpx;

	}

	.item-num {
		width: 40rpx;
		height: 40rpx;
		text-align: center;
		line-height: 40rpx;
		background-color: #bc1f14;
		border-radius: 50%;
		margin-right: 10rpx;
		display: inline-block;
		color: #FFFFFF;
	}
	.null{
		width: 100%;
		height: 100%;
		line-height: 100rpx;
		position: absolute;
		background-color: #FFFFFF;
		top: 0;
		z-index: 40;
		left: 0;
		text-align: center;
	}
</style>
